Neurosis Engine
Public Member Functions | Public Attributes
float3 Class Reference

#include <custom.h>

List of all members.

Public Member Functions

 float3 (float initX=0.0f, float initY=0.0f, float initZ=0.0f)
 ~float3 ()
 Constructor/Deconstructor.
float3 operator+ (float3 rhs)
float3 operator- (float3 rhs)
float3 operator* (float rhs)
float3 operator* (float3 rhs)
float3 operator/ (float rhs)
float3 operator/ (float3 rhs)
void operator= (float3 rhs)
bool operator== (float3 rhs)
bool operator!= (float3 rhs)
 Operators.
float Length ()
 Gets the length.
void Normal (float3 *point1, float3 *point2, float3 *point3)
 Sets the normalized triangle normal of the given points.
void Normalize ()
 Normalizes the value.
void Set (float length, float rotationX, float rotationZ)
 Sets length of vector, and rotation based on the x axis (Pitch) [270.0f..90.0f] and z axis (Yaw) [0.0f..360.0f].
void Set (float rotationX, float rotationZ)
 Sets rotation based on the x axis (Pitch) [270.0f..90.0f] and z axis (Yaw) [0.0f..360.0f], with original length.
void Set (float length)
 Sets length of vector, with original rotation.

Public Attributes

float x
float y
float z

Constructor & Destructor Documentation

float3::float3 ( float  initX = 0.0f,
float  initY = 0.0f,
float  initZ = 0.0f 
)

Constructor/Deconstructor.


Member Function Documentation

float float3::Length ( )

Gets the length.

void float3::Normal ( float3 point1,
float3 point2,
float3 point3 
)

Sets the normalized triangle normal of the given points.

Normalizes the value.

bool float3::operator!= ( float3  rhs)

Operators.

float3 float3::operator* ( float  rhs)
float3 float3::operator* ( float3  rhs)
float3 float3::operator+ ( float3  rhs)
float3 float3::operator- ( float3  rhs)
float3 float3::operator/ ( float  rhs)
float3 float3::operator/ ( float3  rhs)
void float3::operator= ( float3  rhs)
bool float3::operator== ( float3  rhs)
void float3::Set ( float  length,
float  rotationX,
float  rotationZ 
)

Sets length of vector, and rotation based on the x axis (Pitch) [270.0f..90.0f] and z axis (Yaw) [0.0f..360.0f].

void float3::Set ( float  rotationX,
float  rotationZ 
)

Sets rotation based on the x axis (Pitch) [270.0f..90.0f] and z axis (Yaw) [0.0f..360.0f], with original length.

void float3::Set ( float  length)

Sets length of vector, with original rotation.


Member Data Documentation

float float3::x
float float3::y
float float3::z

The documentation for this class was generated from the following file: